FROM registry.saas.crland.com.cn/centos/centos:7.5.1804-new



# set environment
ENV JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk" \
    JAVA="/usr/lib/jvm/java-1.8.0-openjdk/bin/java"


# 设置工作目录
WORKDIR /app

# 从根目录的distribution/target复制nacos-server-2.2.4.tar.gz文件到/app目录
COPY ./* /app/

RUN ls -al /app && tar zxvf nacos-server-2.2.4.tar.gz && ls -al /app && chmod 777 nacos/bin/startup.sh &&  chmod 777 nacos/bin/docker-start.sh

RUN ls -al nacos/bin/startup.sh
RUN cat nacos/bin/startup.sh
#ENV CLUSTER_CONF /app/nacos/conf/cluster.conf


# 设置启动命令
#CMD ["bash /app/nacos/bin/startup.sh"]
#ENTRYPOINT ["bash", "/app/nacos/bin/startup.sh"]
ENTRYPOINT ["bash", "/app/nacos/bin/docker-start.sh"]

